-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX Release-1-13] Added deprecation for Ember.SortableMixin. #12471
[BUGFIX Release-1-13] Added deprecation for Ember.SortableMixin. #12471
Conversation
Hrm, looks like I forgot to run the tests. Oooops. Will fix and squash. |
So I updated this to fix the tests ... but I'm looking for some guidance here. What I realized is that I couldn't find a clear path to only throw the warning if they had explicitly included Perhaps one solution is to just make the deprecation warning better to notify a user that it is part of the ArrayController and if they're not using it, to ignore it. Thoughts? |
Bump. I know there maybe some strings attached to this one, but myself and at least one other person were tripped up by this. |
@@ -122,6 +124,11 @@ export default Mixin.create(MutableEnumerable, { | |||
*/ | |||
sortFunction: compare, | |||
|
|||
init() { | |||
Ember.deprecate(sortableMixinDeprecation, this.isGenerated); | |||
this._super.apply(this, arguments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tweak to this._super(...arguments)
, and move the super call before the deprecation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwjblue Sure, will do.
My thought is if the user explicitly defines an ArrayController, it is probably okay to throw multiple deprecation warnings. Ember 1.13 has so much deprecation spew, what's a little more? |
[BUGFIX Release-1-13] Added deprecation for Ember.SortableMixin.
Thanks @workmanw ! |
You're welcome @rwjblue! I'll follow this up with a PR to the website. |
Addresses #12470. If this is good, I'll add a docs PR to the website.